package com.zzsy.carosshopprojects.activitys.home.mainpage.barmanager.membershipcard;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.zzsy.carosshopprojects.R;
import com.zzsy.carosshopprojects.activitys.home.mainpage.barmanager.memberrecharge.MemberRechargeFragment;
import com.zzsy.carosshopprojects.base.BaseFragment;
import butterknife.BindView;

/**
 * 开卡成功界面
 */
public class OpenCardSuccessFragment extends BaseFragment {
    public static OpenCardSuccessFragment newInstance(String uuid) {
        OpenCardSuccessFragment openCardSuccessFragment = new OpenCardSuccessFragment();
        Bundle bundle = new Bundle();
        bundle.putString("uuid", uuid);
        openCardSuccessFragment.setArguments(bundle);
        return openCardSuccessFragment;
    }

    @BindView(R.id.tv_card_suf)
    TextView tvRecharge;
    private String uuid = "";

    @Override
    protected int initLayout() {
        return R.layout.fg_opencardsuccess;
    }

    @Override
    protected void initView(View view) {
        initTitle(view, getResources().getString(R.string.OpenCardSuccess), getActivity());
        tvRecharge.setOnClickListener(view1 -> {
            startWithPop(MemberRechargeFragment.newInstance(uuid,null));
        });
    }

    @Override
    protected void initData(Context mContext) {
        uuid = getArguments().getString("uuid");
    }

    @Override
    protected void loadMethod() {

    }
}
